package com.mine.modules.vm.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mine.common.annotation.vm.QueryAnnotation;
import com.mine.modules.vm.common.constant.BizConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vm_point")
@ApiModel(value="VmPoint对象", description="")
public class VmPoint implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "点位编码")
    @QueryAnnotation(value = "point_code", type = BizConstant.QUERY_ANNOTATION_TYPE_KEYWORDS)
    private String pointCode;

    @ApiModelProperty(value = "点位名称")
    @QueryAnnotation(value = "point_name", type = BizConstant.QUERY_ANNOTATION_TYPE_KEYWORDS)
    private String pointName;

    @ApiModelProperty(value = "点位标签名称")
    @QueryAnnotation(value = "label_name", type = BizConstant.QUERY_ANNOTATION_TYPE_KEYWORDS)
    private String labelName;

    @ApiModelProperty(value = "点位分类（监测点）")
    @QueryAnnotation(value = "point_classify", type = BizConstant.QUERY_ANNOTATION_TYPE_AND)
    private String pointClassify;

    @ApiModelProperty(value = "视角")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String angleView;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "图层id")
    @TableField(exist = false)
    private String layerId;

    @TableField(exist = false)
    private String sid;

    @TableField(exist = false)
    private String elementSceneLayerId;

}
